<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<script language="javascript">
var price=199.9;
var number=10;
var sum=price*number;
alert(sum);
document.write("<h1>This is a heading</h1>");
var a="One "+"world";
a+="One Dream";
alert(a);
var str="9";
for(i=0;i<4;i++){
str="0"+str;
}
document.write(str+" ");
var i=0;
var str="9";
while(i<4){
str="0"+str;
i++;
}
document.write(str+" ");
var i=0;
var str="9";
do{
str="0"+str;
i++;
}
while(i<4);
document.write(str);
</script>
<script language="javascript">
var now=new Date();
var day=now.getDay();
var week;
switch (day){
case 1:
	week="星期一";
	break;
case 2:
	week="星期二";
	break;
case 3:
	week="星期三";
	break;
case 4：
    week="星期四";
    break;
case 5:
	week="星期五";
	break;
case 6:
	week="星期六";
	break;
default:
	week="星期日";
	break;
	}
document.write("今天是"+week);
</script>

</body>
</html>